package com.kamisama.utopia.constant.character;

public class Healthy {
    public static final String LV1 = "濒临死亡";
    public static final String LV2 = "伤痕累累";
    public static final String LV3 = "些许受伤";
    public static final String LV4 = "暂无异样";
    public static final String LV5 = "完美体质";

    public static String formatHealthy(int healthyPercent) {
        String healthy = "";
        if (healthyPercent <= 10) {
            healthy = "健康：" + Healthy.LV1;
        } else if (healthyPercent <= 30) {
            healthy = "健康：" + Healthy.LV2;
        } else if (healthyPercent <= 60) {
            healthy = "健康：" + Healthy.LV3;
        } else if (healthyPercent < 90) {
            healthy = "健康：" + Healthy.LV4;
        } else {
            healthy = "健康：" + Healthy.LV5;
        }
        healthy = healthy + " [" + healthyPercent +"%] \n";
        return healthy;
    }
}
